package com.stylefeng.guns.modular.computertype.service.impl;

import com.stylefeng.guns.common.persistence.model.ComputerType;
import com.stylefeng.guns.modular.computertype.dao.ComputertypeDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import com.stylefeng.guns.modular.computertype.service.IComputertypeService;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * computertypeDao
 *
 * @author fengshuonan
 * @Date 2019-07-11 16:19:05
 */
@Service
public class ComputertypeServiceImpl implements IComputertypeService {

@Resource
private ComputertypeDao computertypeDao;
    @Override
    public List<Map<String, Object>> selectComputerType(String condition) {
        return computertypeDao.selectComputerType(condition);
    }

    @Override
    public int addComputerType(ComputerType computerType) {
        return computertypeDao.addComputerType(computerType);
    }

    @Override
    public int updateComputerType(ComputerType computerType) {
        return computertypeDao.updateComputerType(computerType);
    }

    @Override
    public int isDelete(Integer id) {
        return computertypeDao.isDelete(id);
    }
}
